<?php
namespace app\oa\model;

use think\Model;

class File extends Model {
    protected $name = 'oa_file';
    protected $autoWriteTimestamp = true;
    protected $updateTime = false;

    protected function getUrlAttr($value, $data) {
        return 'http://' . $_SERVER['HTTP_HOST'] . ROOT_URL . $data['path'];
    }
}